#ifndef SPLITMERGE_H
#define SPLITMERGE_H

#include "opencv/cv.h"
#include "opencv/highgui.h"

#include "quadtree.h"
#include "QString"

#include <iostream>

class SplitMerge
{
public:
    SplitMerge();
    SplitMerge(int seuilSplit, int seuilMerge, QString file, bool color);

    void Split(Quadtree *quad, IplImage *img, int seuil, bool isColorImg);
    void Merge(Quadtree *quad, IplImage *imgSplit, IplImage *imgMerge, int seuil);

    IplImage *img;
};

#endif // SPLITMERGE_H
